home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TGCBOR20.ARJ / INTROPAK.COM / DROP.C < prev    next >
C/C++ Source or Header  |  1991-04-06  |  750b  |  37 lines

  1.  
  2.   /* -- This program show how an image that is covered can still be  */
  3.   /* -- disposed of without affecting the image overlapping it.  */
  4. #include "teglsys.h"
  5.  
  6. imagestkptr  fs;
  7.  
  8.  
  9.  
  10. void main(void)
  11. {
  12.  
  13.   easytegl();
  14.   easyout();
  15.  
  16.   pushimage(1,1,100,100);
  17.   shadowbox(1,1,100,100);
  18.   fs = stackptr;
  19.  
  20.   pushimage(50,50,150,150);
  21.   shadowbox(50,50,150,150);
  22.  
  23.   while (mouse_buttons == 0) ;
  24.  
  25.     /* -- the window manager will restore the covered areas of the screen  */
  26.     /* -- and in the case of the area that is overlapped the background that  */
  27.     /* -- has been saved by that frame is updated with the partial contents  */
  28.     /* -- of the disposed image.  */
  29.  
  30.   dropstackimage(fs);
  31.  
  32.   teglsupervisor();
  33. }
  34.  
  35.  
  36.  
  37.